<template>
  <div class="not-found">
    <div class="content">
      <div class="error-code">404</div>
      <div class="error-title">页面不存在</div>
      <div class="error-desc">抱歉，您访问的页面不存在或已被删除</div>
      <t-button theme="primary" @click="goHome">返回首页</t-button>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const goHome = () => {
  router.push('/')
}
</script>

<style lang="scss" scoped>
.not-found {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f7fa;
  
  .content {
    text-align: center;
    padding: 20px;
    
    .error-code {
      font-size: 80px;
      font-weight: bold;
      color: #0052d9;
      margin-bottom: 20px;
    }
    
    .error-title {
      font-size: 24px;
      font-weight: bold;
      margin-bottom: 10px;
    }
    
    .error-desc {
      font-size: 16px;
      color: #666;
      margin-bottom: 30px;
    }
  }
}
</style>